<template>
    <div class="dialog-container">
        <div class="dialog-header">
            <div>{{title}}</div>
            <div>&times;</div>
        </div>
        <div class="dialog-content">
            <slot></slot>
        </div>
    </div>
</template>

<script>
export default {
    props:{
        title:{
            type:String,
            default:'提示框'
        }
    }
}
</script>

<style lang="scss">
    .dialog-container{
        display: flex;
        flex-direction: column;
        width: 300px;
        border: 1px solid #000;
        .dialog-header{
            display: flex;
            box-sizing: border-box;
            padding: 0px 10px;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            height: 35px;
            background:skyblue;
        }
        .dialog-content{
            flex-grow: 1;
        }
    }
</style>